package com.sfexpress.tools.entity;

import java.util.ArrayList;
import java.util.List;

/**
 * 
 * 兼容性检查结果
 * 
 * @author CrazyPig
 *
 */
public class CmptCheckResult {

	private MysqlConnInfo pvConnInfo;
	private String pvTable;
	private MysqlConnInfo gvConnInfo;
	private String gvTable;
	
	private boolean compatible; // 是否兼容
	
	private List<ConflictItem> conflictItems = new ArrayList<ConflictItem>(); // 冲突项
	private List<MysqlColumnInfo> newItems = new ArrayList<MysqlColumnInfo>(); // 新增项
	private List<MysqlColumnInfo> deletedItems = new ArrayList<MysqlColumnInfo>(); // 删除项
	
	public static class ConflictItem {
		
		private MysqlColumnInfo gvColumn;
		private MysqlColumnInfo pvColumn;

		public ConflictItem(MysqlColumnInfo gvColumn, MysqlColumnInfo pvColumn) {
			this.gvColumn = gvColumn;
			this.pvColumn = pvColumn;
		}

		public MysqlColumnInfo getGvColumn() {
			return gvColumn;
		}

		public void setGvColumn(MysqlColumnInfo gvColumn) {
			this.gvColumn = gvColumn;
		}

		public MysqlColumnInfo getPvColumn() {
			return pvColumn;
		}

		public void setPvColumn(MysqlColumnInfo pvColumn) {
			this.pvColumn = pvColumn;
		}
		
	}
	
	public MysqlConnInfo getPvConnInfo() {
		return pvConnInfo;
	}
	public void setPvConnInfo(MysqlConnInfo pvConnInfo) {
		this.pvConnInfo = pvConnInfo;
	}
	public String getPvTable() {
		return pvTable;
	}
	public void setPvTable(String pvTable) {
		this.pvTable = pvTable;
	}
	public MysqlConnInfo getGvConnInfo() {
		return gvConnInfo;
	}
	public void setGvConnInfo(MysqlConnInfo gvConnInfo) {
		this.gvConnInfo = gvConnInfo;
	}
	public String getGvTable() {
		return gvTable;
	}
	public void setGvTable(String gvTable) {
		this.gvTable = gvTable;
	}
	public boolean isCompatible() {
		return compatible;
	}
	public void setCompatible(boolean isCompatible) {
		this.compatible = isCompatible;
	}
	public List<ConflictItem> getConflictItems() {
		return conflictItems;
	}
	public void setConflictItems(List<ConflictItem> conflictItems) {
		this.conflictItems = conflictItems;
	}
	public List<MysqlColumnInfo> getNewItems() {
		return newItems;
	}
	public void setNewItems(List<MysqlColumnInfo> newItems) {
		this.newItems = newItems;
	}
	public List<MysqlColumnInfo> getDeletedItems() {
		return deletedItems;
	}
	public void setDeletedItems(List<MysqlColumnInfo> deletedItems) {
		this.deletedItems = deletedItems;
	}
	
}
